<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<div>
	<form id="f_play" action="<c:url value='/admin/play/save.do'/>" method="post">
		<input type="hidden" name="play.playId" value="${play.playId}">
		<table id="t_play_detail">
			<tr>
				<th width="75px">类型</th>
				<td>
					<select name="play.types">
						<option value="1">探险</option>
						<option value="2">动作</option>
					</select>
				</td>
			</tr>
			<tr>
			<th width="75px">中文名称</th>
				<td>
					<input type="text" name="play.chineseName" value="${play.chineseName}"/>
				</td>
			</tr>
			<tr>
			<th width="75px">英文名称</th>
				<td>
					<input type="text" name="play.englishName" value="${play.englishName}"/>
				</td>
			</tr>
			<tr>
			<th width="75px">是否可用</th>
				<td>
					<input type="checkbox" id="f_play_enabled" name="play.enabled" value="1"/>
					<script type="text/javascript">
						var playEnabled = "<c:out value='${play.enabled}' />";
						var playEnabledValue = parseInt(playEnabled);
						if(playEnabledValue == 1){
							$("#f_play_enabled").attr("checked",true);
					  	}
					</script>
				</td>
			</tr>
			<tr>
				<th width="75px">首页地址</th>
				<td>
					<input type="text" name="play.url" value="${play.url}"/>
				</td>
			</tr>
			<tr>
				<th width="75px">发布者</th>
				<td>
					<input type="text" name="play.publisher" value="${play.publisher}"/>
				</td>
			</tr>
			<tr>
				<th width="75px">描述</th>
				<td>
					<input type="text" name="play.description" value="${play.description}"/>
				</td>
			</tr>
			<tr>
				<td><input type="submit" name="保存" value="保存"/></td>
			</tr>
		</table>
	</form>
</div>
